package reivew;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zhiyinshi {
    public static void main(String[] args) {
        int k = 48;
        int i = 2;
        int s=0;//下标
        int ar[]=new int[40];
        //分解质因数
        System.out.print(k + "=");
        while (k != 1) {
            if (k % i == 0) {
                k /= i;
                ar[s]=i;
                s++;
//                if (k == 1)
//                    System.out.print(i);
//                else
//                    System.out.print(i + "✖");
                continue;
            }
            i++;
        }
        for (int j=0;j<s;j++){
            System.out.print(ar[j]+"   ");
        }

    }
}
